package com.fin.zw.aiqas.model.response;

import com.fin.zw.aiqas.entity.TaskInfo;
import com.fin.zw.aiqas.entity.UserInfo;
import com.fin.zw.aiqas.enums.AllotRule;
import com.fin.zw.aiqas.enums.ReviewTaskStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

/**
 * @Description: 复核任务 response
 * @Author: ZhangGQ
 * @Date: 2019/9/12 10:51
 */
@Data
public class ReviewTaskResponse {
    @ApiModelProperty("复核任务ID")
    private Long id;
    @ApiModelProperty("复核任务批次'")
    private String reviewTaskBatch;
    @ApiModelProperty("完成率")
    private BigDecimal finishNum;
    @ApiModelProperty("复核任务数量")
    private int reviewTaskNum;
    @ApiModelProperty("复核任务完成数量")
    private int reviewTaskFinishNum;
    @ApiModelProperty("复核任务状态")
    private ReviewTaskStatus reviewTaskStatus;
    @ApiModelProperty("创建人")
    private String operatorRealName;
    @ApiModelProperty("抽检比例")
    private BigDecimal checkProp;
    @ApiModelProperty("定时任务")
    private TaskInfo taskInfo;
    @ApiModelProperty("定时任务质检结果批次号")
    private String taskBatch;
    @ApiModelProperty("客服编号'")
    private String serviceCode;
    @ApiModelProperty("分配规则-[SYNTHESIZE：综合均分 / ALLOT_AVG：平均分配]")
    private AllotRule allotRule;
    @ApiModelProperty("质检人员")
    private Set<UserInfo> userInfoSet;
    @ApiModelProperty("复核任务创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty("复核任务分配人数")
    private int reviewUserNum;

}
